package com.amigo.online.provider.manager.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.provider.manager.model.entity.AdvAreaTbl;
import com.amigo.online.provider.manager.model.entity.AdvNearbyApplyTbl;
import com.amigo.online.provider.manager.result.AdvNearbyInfo;

@Mapper
public interface AdvNearbyApplyTblMapper extends MyMapper<AdvNearbyApplyTbl> {

    List<AdvNearbyApplyTbl> findNearbyAdv(AdvNearbyApplyTbl advNearbyApplyTbl);

    int deletebyId(AdvNearbyApplyTbl advNearbyApplyTbl);

    int updateById(AdvNearbyApplyTbl advNearbyApplyTbl);

    AdvNearbyApplyTbl selectById(@Param("id") Long id);

    AdvNearbyInfo findNearbyAdvDetailInfo(@Param("id") Long id);

    int findNearbyAdvCount(AdvNearbyApplyTbl advNearbyApplyTbl);

    List<AdvAreaTbl> findNearbyAdvDetailAreaInfo(@Param("id") Long id);
}
